package words;


public class EntityPair {

  int m_nSent;
  // index of left entity
  int m_nLeft;
  // index of right entity 
  int m_nRight;
  
  String m_strID;
  // entity label
  int m_nTrueLabel;
  int m_nInfLabel;
  // confidence for inferred label
  double m_conf;


  public EntityPair(int nSent, int nLeft, int nRight)
  {
    m_nSent = nSent;
    m_nLeft = nLeft;
    m_nRight = nRight;

    m_strID = String.valueOf(m_nSent) + "." + String.valueOf(m_nLeft) + "-" +
      String.valueOf(m_nRight);

    m_nTrueLabel = m_nInfLabel = -1;
    m_conf = 0.0;
  }


  public void setTrueValue(boolean bPositive)
  {
    m_nTrueLabel = bPositive ? 1 : 0;
  }

  public boolean isTruePos()
  {
    return m_nTrueLabel == 1;
  }
  
  public boolean isInfPos()
  {
    return m_nInfLabel == 1;
  }
  

}
